<script setup>
import { onMounted, reactive, ref, watch } from 'vue'
let count = ref({
  state.a = 
})
count.value = 1
const btn = () => {
  count.value++
}
onMounted(() => {
  console.log('mounted')
})
watch(count, () => {
  if (count.value === 5) {
    console.log(666)
  }
})
let test2 = reactive(['2,3,4'])
</script>

<template>
  <div @click="btn">{{ count }}{{ test2 }}</div>
</template>

<style scoped></style>
